home *** CD-ROM | disk | FTP | other *** search
- Path: rover.ucs.ualberta.ca!news
- From: ryangall@gpu.srv.ualberta.ca (Bobby Sixkiller)
- Newsgroups: comp.lang.c
- Subject: Re: allocating unlimited string input....HELP
- Date: 11 Jan 1996 06:11:17 GMT
- Organization: University of Alberta, Edmonton, Canada
- Message-ID: <4d29m5$p80@pulp.ucs.ualberta.ca>
- References: <4cvph6$s8s@pulp.ucs.ualberta.ca> <4d0j0r$7aq@news.iag.net>
- NNTP-Posting-Host: async14-9.remote.ualberta.ca
- Mime-Version: 1.0
- X-Newsreader: WinVN 0.99.2
-
-
- >Are you sure it doesn't start acting up, when count reaches 128? That's
- >the result where char is a signed char. At 127 + 1, count goes negative
- >(becomes -128). Subsequent loops would count up from there.
-
- that right, I must have read it wrong, but it goes nuts @ 126 since malloc
- is asking for sizeof(B)+2
-
-
-
-